import type { RouteRecordRaw } from 'vue-router'

const router: RouteRecordRaw[] = [
  {
    path: '/admin',
    component: () => import('../views/admin/LoginView.vue'),
  },
  {
    path: '/admin/main',
    component: () => import('../views/admin/MainView.vue'),
    children: [
      {
        path: 'welcome',
        component: () => import('../views/admin/pages/WelcomeView.vue'),
      },
      {
        path: 'log',
        component: () => import('../views/admin/pages/LogView.vue'),
      },
      {
        path: 'report',
        component: () => import('../views/admin/pages/ReportMessage.vue'),
      },
    ],
  },
]

export { router as adminRouter }
